package com.shuoyutech.dp;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;

@Slf4j
@EnableCaching
@EnableWebSecurity
@SpringBootApplication
public class DpMsApplication implements CommandLineRunner {

    @Value("${spring.profiles.active}")
    private String active;

    public static void main(String[] args) {
        SpringApplication.run(DpMsApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        log.info("[DP-MS] Data Solution Platform Started: {}", active);
    }

}
